﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FacturIT.Service.WorkingHour
{
    public class WorkingHourDTO
    {
        private FacturIT.BLL.Model.WorkingHour.WorkingHour workinghour;

        public WorkingHourDTO(FacturIT.BLL.Model.WorkingHour.WorkingHour workinghour)
        {
            this.workinghour = workinghour;
        }
        public bool HasObject { get { return workinghour != null; } }


        public int WorkingHourID
        {
            get
            {
                return workinghour.WorkingHourID;
            }
            private set
            {
            }
        }
        public int CompanyProjectID
        {
            get
            {
                return workinghour.CompanyProjectID;
            }
            private set
            {
            }
        }
        public DateTime Starttime
        {
            get
            {
                return workinghour.StartTime;
            }
            private set
            {
            }
        }
        public DateTime Endtime
        {
            get
            {
                return workinghour.EndTime;
            }
            private set
            {
            }
        }
        public bool Charged
        {
            get
            {
                return workinghour.Charged;
            }
            private set
            {
            }
        }
        public TimeSpan WorkingTime
        {
            get
            {
                return workinghour.EndTime - workinghour.StartTime;
            }
            private set
            {
            }
        }
    }
}